home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7532 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.lang.c++
  2. Path: hkpu01.hkp.hk!usenet
  3. From: kwkwok5@hkein.school.net.hk (K. W. Kwok)
  4. Subject: How to develope a binary tree ??
  5. Content-Type: Text/Plain; charset=US-ASCII
  6. Message-ID: <Dn8MLL.J32@hkpu01.polyu.edu.hk>
  7. Sender: usenet@hkpu01.polyu.edu.hk (Usenet Account)
  8. Nntp-Posting-Host: 158.132.16.123
  9. Organization: Your Organization
  10. X-Newsreader: WinVN 0.99.7
  11. Mime-Version: 1.0
  12. Date: Fri, 23 Feb 1996 16:46:32 GMT
  13.  
  14. Hello everybody:
  15. I hava a big problem now! 
  16. I don't how to build a binary tree using C.
  17.  
  18. A RANDOM file have the following field:
  19. Record No.   int          1-100
  20. Branch Code  string(2)    01-05
  21. Salesman ID  string(6)    6 digits
  22. Salesman name string(25)  non-blank
  23. Product A     numeric(float) positive
  24. Product B     numeric(float) positive
  25.  
  26. Now, I need to provide the following features:
  27. 1.  Allow user inquiry the file by salesman ID and
  28.     salesman name.
  29.     I should implement the BINARY SEARCH TREE for the inquiries.
  30.     I need to create two tree. One contains salesman ID and record
  31.     number, the other contains salesman names and record number.
  32.     both tree should be in salesman ID and salesman name order.
  33.  
  34. 2.  Provide 2 Salesman report. 
  35.     One report by salesman ID, and the other 
  36.     by salesman name.
  37.     The report should be inplemented by the BINARY
  38.     SEARCH TREE inorder traversal
  39.  
  40. Any one can help me slove the above problems ?
  41. I urgently need to slove them.
  42. Can you help me?
  43. You can answer it directly to me by e-mail
  44. (kwkwok5@hkein.school.net.hk)
  45. Thank you very much!!
  46.  
  47. K. W. Kwok
  48.  
  49.